package com.giscloud.limp.dao;

import com.giscloud.limp.entity.Plaintiff;
import org.apache.ibatis.annotations.Param;
import com.giscloud.limp.entity.PlaintiffExample;
import java.util.List;
import com.giscloud.datasource.core.DynamicDataSource;
/**
 * 原告信息表
 * 
 * @author giscloud
 * @email giscloud@giscloud.com
 * @date 2020-06-08 14:49:47
 */
public interface PlaintiffDao {
    @DynamicDataSource("ds1")
    long countByExample(PlaintiffExample example);
    @DynamicDataSource("ds1")
    int deleteByExample(PlaintiffExample example);
    @DynamicDataSource("ds1")
    int insert(Plaintiff record);
    @DynamicDataSource("ds1")
    int insertSelective(Plaintiff record);
    @DynamicDataSource("ds1")
    List<Plaintiff> selectByExample(PlaintiffExample example);
    @DynamicDataSource("ds1")
    int updateByExampleSelective(@Param("record") Plaintiff record, @Param("example") PlaintiffExample example);
    @DynamicDataSource("ds1")
    int updateByExample(@Param("record") Plaintiff record, @Param("example") PlaintiffExample example);
    @DynamicDataSource("ds1")
    int updateByPrimaryKeySelective(Plaintiff record);
    @DynamicDataSource("ds1")
    int updateByPrimaryKey(Plaintiff record);
    @DynamicDataSource("ds1")
    Plaintiff selectByPrimaryKey(Integer plaintiffId);
    @DynamicDataSource("ds1")
    Plaintiff selectOneByExample(PlaintiffExample example);
    @DynamicDataSource("ds1")
    Plaintiff selectOneByExampleSelective(@Param("example") PlaintiffExample example, @Param("selective") Plaintiff.Column... selective);
    @DynamicDataSource("ds1")
    Plaintiff selectByPrimaryKeySelective(Integer plaintiffId, @Param("selective") Plaintiff.Column... selective);
    @DynamicDataSource("ds1")
    List<Plaintiff> selectByExampleSelective(@Param("example") PlaintiffExample example, @Param("selective") Plaintiff.Column... selective);

}
